package com.woniuxy.email.listener;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author yellow Docter
 * @date 2024-10-23
 * @desc 蜗牛创想：www.woniuxy.com
 */
@Component
public class FanoutListener1 {

//    @RabbitListener(queues = "fanout.queue1")
//    public void handler(String msg){
//        System.out.println("队列queue1 中的消费者===> msg = " + msg);
//    }

    @RabbitListener(queues = "topic.queue1")
    public void handler(String msg){
        System.out.println("topic 队列queue1 中的消费者===> msg = " + msg);
    }


}
